package com.fortune.cat.constant;

/**
 * @author zhaozeyang
 * @date 2019/4/17 17:04
 * @description
 */
public class ZkPathConstants {


    /**
     * 路由信息存放根节点
     */
    public static String ROUTE_DEFINITION = "/fortune-cat/route-definition";

    /**
     * 签名accessId和accessKey存放根节点
     */
    public static String SIGN_ACCESS = "/fortune-cat/sign-access";

    public static String buildRoutePath(final String pluginName) {
        return String.join("/", ROUTE_DEFINITION, pluginName);
    }

    public static String parentRouteData() {
        return String.valueOf(System.currentTimeMillis());
    }
}
